import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-01-14
 * Time: 10:31
 */
public class Main {
    public static void main(String[] args) {
      String s1 = "welcome to home";
      String s2 = "come";
      List<Character> list = new ArrayList<>();
      for(int i = 0; i < s1.length();i++) {
          char ch = s1.charAt(i);

          if(!s2.contains(ch+"")) {
              list.add(ch);
          }
      }
      for(int i = 0; i < list.size();i++) {
          System.out.print(list.get(i));
      }
    }
}
